package com.subject.infra.basic.service.impl;

import com.subject.infra.basic.dto.SubjectCategoryDto;
import com.subject.infra.basic.entity.SubjectCategoryEntity;
import com.subject.infra.basic.mappers.SubjectCategoryMapper;
import com.subject.infra.basic.service.SubjectCategoryService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class SubjectCategoryServiceImpl implements SubjectCategoryService {
    @Autowired
    private SubjectCategoryMapper subjectCategoryMapper;

    @Override
    public List<SubjectCategoryDto> getAllCategory() {
        return subjectCategoryMapper.getAllCategory();
    }
}
